// 库存管理接口
import request from "@/common/request.js";
const api = {
  stock_control: "/stock_control/",
  product: "/product",
  bom: "/bom",
  warehouse: "/warehouse",
  stock_control_change: "/stock_control_change",
  stock_adjust: "/stock_adjust/",
};

const wareInventoryApi = {
  get_stock_control(params) {
    return request({
      url: api.stock_control,
      method: "get",
      params,
    });
  },

  get_stock_control_change(params) {
    return request({
      url: api.stock_control_change,
      method: "get",
      params,
    });
  },

  post_stock_control(params) {
    return request({
      url: api.stock_control,
      method: "post",
      params,
    });
  },

  get_product(params) {
    return request({
      url: api.product,
      method: "get",
      params,
    });
  },

  get_bom(params) {
    return request({
      url: api.bom,
      method: "get",
      params,
    });
  },
  get_warehouse(params) {
    return request({
      url: api.warehouse,
      method: "get",
      params,
    });
  },

  post_stock_adjust(data) {
    return request({
      url: api.stock_adjust,
      method: "post",
      data,
    });
  },
};
export default wareInventoryApi;
